put the value of word 2 of the long name of this stack into source
set the cursor to busy
ResCopy source, dest, "XCMD", "NewFolder"
if the result is not empty then
Alert 3,1,the result,False
end if
end mouseUp
-- part 8 (field)
-- low flags: 00
-- high flags: 0007
-- rect: left=50 top=79 right=225 bottom=463
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 2
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name:
-- part contents for card part 6
----- text -----
Folder name:
-- part contents for card part 8
----- text -----
NewFolder by David Elliott
NewFolder <pathname>[,<pathname>...]
This XCMD takes a list of pathnames and creates each folder, including all of the ancestors of the folder that do not exist. Note that a pathname must begin with the volume name for this XCMD to work as expected.
The result is the system error if any occured, and is empty otherwise.
Copyright 1990, by David C. Elliott.
You are free to use this XCMD in any of your stacks or collections
(commerical or not) as long as you include this copyright. This applies only to the NewFolder XCMDs. Other XCMDs in this stack have other restrictions.
If you need an XCMD that will create folders under the auspices of the Standard File dialog, check out UbiqueΓäó by Chris Watson.